package cn.ljy.mes.web.controller.backstage.wms.warehouse;


import cn.ljy.authority.web.controller.backstage.BaseBackstageController;
import cn.ljy.mes.model.WmsMaterialInventory;
import cn.ljy.mes.model.query.WmsMaterialInventoryQuery;
import cn.ljy.mes.service.WmsMaterialBatchService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "后台物料批次模块")
@RestController
@RequestMapping(value = "/backstage/wms/materialInventory")
public class WmsMaterialInventoryController extends BaseBackstageController<WmsMaterialInventory, WmsMaterialInventoryQuery,String> {

    @Autowired
    private WmsMaterialBatchService baseService;

    @Override
    public String getAuthorityPrefix() {
        return "wms:materialinventory"; // 定义模块权限前缀
    }

//    @GetMapping("/all")
//    @PreAuthorize("hasAuthority('wms:materialinventory:query')")
//    @Override
//    protected ResponseData query(WmsMaterialInventoryQuery query) {
//        return super.query(query);
//    }
//
//    @PreAuthorize("hasAuthority('wms:materialinventory:query')")
//    @Override
//    public ResponseData query(Integer page, Integer pageSize, WmsMaterialInventoryQuery query){
//        return super.query(page,pageSize,query);
//    }
//
//    @PreAuthorize("hasAuthority('wms:materialinventory:add')")
//    @Override
//    protected ResponseData add(@Validated({AddWorkValidation.class}) @RequestBody WmsMaterialInventory wmsMaterialInventory) {
//        return super.add(wmsMaterialInventory);
//    }
//
//    @PreAuthorize("hasAuthority('wms:materialinventory:query')")
//    @Override
//    protected ResponseData get(@PathVariable String id) {
//        return super.get(id);
//    }
//
//
//    @PreAuthorize("hasAuthority('wms:materialinventory:edit')")
//    @Override
//    public ResponseData edit(@Validated({UpdateWorkValidation.class}) @RequestBody WmsMaterialInventory wmsMaterialInventory){
//        return super.edit(wmsMaterialInventory);
//    }
//
//    @PreAuthorize("hasAuthority('wms:materialinventory:del')")
//    @Override
//    public ResponseData deletes(String[] ids){
//        return super.deletes(ids);
//    }

}
